% SL Script to control PDF generation, set the boxes

% FYI: setupPage ( float translate_x, float translate_y, float rotate, float scale_x, float scale_y, int keepOnSamePage )

define pdf_page_setup(pagenum) {
% do not change the page
   variable targetWidth = pageWidth();
   variable targetHeight = pageHeight();

% The next line has no direct effect, however it silently forces PStill to disregard all
% Trim/Crop and Bleedboxes in the source job

    setupPage(0, 0, 0.0, 1, 1, 0);

% remember to typecast for this call, it needs integer
  setMediaBox(int(targetWidth),int(targetHeight));

% setup the boxes - 0,0 is lower left like always, measure in pts
% remember: you need to turn on PDF/X processing otherwise they are not written

  setTrimBox(36,36,612,792);
  setBleedBox(27,27,621,801);
  setCropBox(36,36,612,792);
}

% no annotation processing for this run

define action_pdfmark(s,n) {

}
